package com.ericsson.eritask.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.sql.DataSource;

import org.springframework.stereotype.Repository;

import com.ericsson.eritask.domain.Task;
import com.ericsson.eritask.dto.ProjectDTO;
import com.ericsson.eritask.dto.ReminderDTO;
import com.ericsson.eritask.dto.TaskDTO;
import com.ericsson.eritask.dto.UserTaskDTO;

@Repository("taskDao")
public class JdbcTaskDAO implements SaveTaskDao{

	
	private DataSource dataSource;
	
	
	
	/*@PersistenceContext
	private EntityManager entitymanager;
	*/
	
	
	
	public DataSource getDataSource() {
		return dataSource;
	}




	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}




	/*public EntityManager getEntitymanager() {
		//return entitymanager;
	}*/




	/*public void setEntitymanager(EntityManager entitymanager) {
		this.entitymanager = entitymanager;
	}*/




	@Override
	public boolean insertTask(ProjectDTO projDto, TaskDTO taskDto, ReminderDTO reminderDTO) {
		// TODO Auto-generated method stub
		
		//task= new Task();
		//entitymanager.persist(task);
		
		return true;
	}




	@Override
	public boolean insertUserTask(ProjectDTO projDto, TaskDTO taskDto, ReminderDTO reminderDTO, UserTaskDTO userTaskDTO)
			throws Exception {
		// TODO Auto-generated method stub
		return false;
	}






}
